@extends('layouts.app')
@section('title', '审核')

@section('content')
    <div class="conn">
       <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <table class="table table-hover">
                        <h2 class="text-center">客户申请</h2>
                        <thead>
                        <tr>
                            <th>姓名</th>
                            <th>申请金额</th>
                            <th>抵押物</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>


                        @foreach($basis as $v)
                            <tr>
                                <td>{{$v->name}}</td>
                                <td>{{$v->money}}</td>
                                <td>
                                    @if ($images = json_decode($v->img))
                                        @foreach($images as $file)
                                            <img src="{{ url($file) }}" width="50" height="50">
                                        @endforeach
                                    @else
                                        -
                                    @endif
                                </td>
                                <td>{{ $v->status_desc }}</td>
                                <td>
                                    <a class="update btn btn-info"  style="float: left" href="{{ route('examine.show', $v->id) }}">查看详情</a>
                                </td>
                            </tr>
                        @endforeach

                        </tbody>

                    </table>
                </div>
            </div>
           <div class="row">
               <div class="col-md-12">
                   <div class="pull-right">
                       {{$basis->render()}}
                   </div>
               </div>
           </div>
       </div>
    </div>
    <link rel="stylesheet" type="text/css"  href="{{ asset('css/examine/index.css') }}"/>
@endsection
